package com.spic.business.hidden.governance.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.spic.business.hidden.governance.domain.HiddenGovernance;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 隐患排查治理Mapper接口
 *
 * @author renxiang
 * @date 2021-10-15
 */
@Mapper
public interface HiddenGovernanceMapper  extends BaseMapper<HiddenGovernance>
{
    /**
     * 查询隐患排查治理
     * @param id 隐患排查治理主键
     * @return 隐患排查治理
     */
    HiddenGovernance selectHiddenGovernanceById(Integer id);

    /**
     * 查询隐患排查治理列表
     *
     * @param hiddenGovernance 隐患排查治理
     * @return 隐患排查治理集合
     */
    List<HiddenGovernance> selectHiddenGovernanceList(HiddenGovernance hiddenGovernance);


    List<HiddenGovernance> selectHiddenGovernanceByYearList(HiddenGovernance hiddenGovernance);


    List<HiddenGovernance> selectHiddenGovernanceByWeek();
    /**
     * 新增隐患排查治理
     *
     * @param hiddenGovernance 隐患排查治理
     * @return 结果
     */
    int insertHiddenGovernance(HiddenGovernance hiddenGovernance);

    /**
     * 修改隐患排查治理
     *
     * @param hiddenGovernance 隐患排查治理
     * @return 结果
     */
    int updateHiddenGovernance(HiddenGovernance hiddenGovernance);

    /**
     * 删除隐患排查治理
     *
     * @param id 隐患排查治理主键
     * @return 结果
     */
    int deleteHiddenGovernanceById(Integer id);

    /**
     * 批量删除隐患排查治理
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    int deleteHiddenGovernanceByIds(Integer[] ids);
}
